package com.lindenliu.rememberIt.data
{
	public class WordItem
	{
		public var word:String;
		public var audioURI:String;
		public var pronaunciation:String;
		public var definition:String;
		public var examples:Array=[];
		public function WordItem(value:XML)
		{
			if ( value )
			{
				word = value.key;
				audioURI = value.audio;
				pronaunciation = value.pron;
				definition = value.def;
				for each ( var sent:XML in value.sent )
				{
					examples.push({orig:sent.orig[0].toString(), trans:sent.trans[0].toString()});
				}
			}
		}
	}
}